import http from "@/utils/http";

export default {
    // 饭店列表
    getHotelList_name: (data:any) =>
        http.get(
            "/Admin/getHotelList_name",
            {
                params:{...data}
            }
        ),
    // 订货列表
    getHotelList: (data:any) =>
        http.get(
            "/Admin/Hotel_List",
            {
                params:{...data}
            }
        ),
    // 添加
    addHotel: (data:any) =>
        http.post(
            "/Admin/addHotel_List",
            {...data}
        ),
    // 修改
    updaHotel: (data:any) =>
        http.post(
            "/Admin/updateHotel_List",
            {...data}
        ),
    // 删除
    deleteHotelList: (data:any) =>
        http.post(
            "/Admin/deleteHotel_List",
            {...data}
        )
};
